#pragma once
#include "ObjPtrList.h"
#include "LobbyProtocol.h"
#include "UIButton.h"
#include "DBProtocol.h"

struct ProductGameId
{
	DWORD dwProductId;
	DWORD dwGameId;
};

class CDataPool
{
public:
	CDataPool(void);
	~CDataPool(void);

public:
	void SetUserInfo(LCUserLoginMsg *pMsg);
	
	BOOL AddSignupInfo(DWORD dwProductId, DWORD tmMatchStartTime);
	BOOL DelSignupInfo(DWORD dwProductId, DWORD tmMatchStartTime);

	DWORD GetProductGameId(DWORD dwProductId);
	void SetProductGameId(DWORD dwProductId, DWORD dwGameId);
    
public:
	CObjList<ProductGameId> m_listProductGameId;
	CObjList<UserSignupInfo> m_listSignupInfo;
	DWORD m_dwUserId;
	char m_szUserName[Max_UserName];
	int m_nMoney;
	int m_nExp;
	int m_nLevel;
	int m_nFigure;
	char m_szPwd[Max_MD5_Len];
};

extern CDataPool g_dataPool;
